package com.yjy.fuyao.order.client;

import com.yjy.fuyao.utils.vo.CourseInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-stu")
public interface StuClient {
    //根据课程id查询课程信息
    @GetMapping("/front/stu/course/getDto/{courseId}")
    public CourseInfoVo getCourseInfo(@PathVariable("courseId") String courseId);
}
